{"ast":null,"code":"import { useContext } from 'react';\nimport { FormItemInputContext } from '../context';\nimport warning from '../../_util/warning';\nconst useFormItemStatus = () => {\n  const {\n    status\n  } = useContext(FormItemInputContext);\n  process.env.NODE_ENV !== \"production\" ? warning(status !== undefined, 'Form.Item', `Form.Item.useStatus should be used under Form.Item component. For more information: ${window.location.protocol}//${window.location.host}/components/form-cn/#Form.Item.useStatus`) : void 0;\n  return {\n    status\n  };\n};\n// Only used for compatible package. Not promise this will work on future version.\nuseFormItemStatus.Context = FormItemInputContext;\nexport default useFormItemStatus;","map":{"version":3,"names":["useContext","FormItemInputContext","warning","useFormItemStatus","status","process","env","NODE_ENV","undefined","window","location","protocol","host","Context"],"sources":["/data/messenger.client/node_modules/antd/es/form/hooks/useFormItemStatus.js"],"sourcesContent":["import { useContext } from 'react';\nimport { FormItemInputContext } from '../context';\nimport warning from '../../_util/warning';\nconst useFormItemStatus = () => {\n  const {\n    status\n  } = useContext(FormItemInputContext);\n  process.env.NODE_ENV !== \"production\" ? warning(status !== undefined, 'Form.Item', `Form.Item.useStatus should be used under Form.Item component. For more information: ${window.location.protocol}//${window.location.host}/components/form-cn/#Form.Item.useStatus`) : void 0;\n  return {\n    status\n  };\n};\n// Only used for compatible package. Not promise this will work on future version.\nuseFormItemStatus.Context = FormItemInputContext;\nexport default useFormItemStatus;"],"mappings":"AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,SAASC,oBAAoB,QAAQ,YAAY;AACjD,OAAOC,OAAO,MAAM,qBAAqB;AACzC,MAAMC,iBAAiB,GAAG,MAAM;EAC9B,MAAM;IACJC;EACF,CAAC,GAAGJ,UAAU,CAACC,oBAAoB,CAAC;EACpCI,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GAAGL,OAAO,CAACE,MAAM,KAAKI,SAAS,EAAE,WAAW,EAAG,uFAAsFC,MAAM,CAACC,QAAQ,CAACC,QAAS,KAAIF,MAAM,CAACC,QAAQ,CAACE,IAAK,0CAAyC,CAAC,GAAG,KAAK,CAAC;EAC/Q,OAAO;IACLR;EACF,CAAC;AACH,CAAC;AACD;AACAD,iBAAiB,CAACU,OAAO,GAAGZ,oBAAoB;AAChD,eAAeE,iBAAiB"},"metadata":{},"sourceType":"module"}